<?php
class ScoutMsgReactionInfo extends AppModel {
	var $name = "ScoutMsgReactionInfo";
	var $useTable = "scout_msg_reaction_info";
	var $primaryKey = 'id';
// 	var $belongsTo = array(
// 			'ScoutMsgInfo'=>array(
// 					'className'=>'ScoutMsgInfo', 'conditions'=>"", 'order'=>'',
// 					'foreignKey'=>'scout_id'
// 			)
// 	);
	
	function doDelete($id) {
		$sql = "update scout_msg_reaction_info set member_deleted=now() " . " where id in (".Sanitize::sql($id).")";
		$this->query($sql);
	}
	
	function upStatus($id) {
		$sql = "update scout_msg_reaction_info set status='1' " . " where id = " . Sanitize::sql($id) . " and status='0' ";
		$this->query($sql);
	}
	
	function upReturnMsg($status,$id) {
		$sql = "update scout_msg_reaction_info set status=".$status . " where id = ".Sanitize::sql($id);
		$this->query($sql);
	}
	
}

?>